CREATE TABLE [dbo].[LoginHost]
(
[Id] [int] NOT NULL IDENTITY(1, 1),
[UserId] [int] NOT NULL,
[Hostname] [varbinary] (max) NOT NULL,
[Autologin] [bit] NOT NULL,
[DateCreated] [datetime] NOT NULL
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]
GO
ALTER TABLE [dbo].[LoginHost] ADD CONSTRAINT [PK_LoginHost] PRIMARY KEY CLUSTERED  ([Id]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[LoginHost] ADD CONSTRAINT [FK_LoginHost_UserInfo] FOREIGN KEY ([UserId]) REFERENCES [dbo].[UserInfo] ([Id])
GO
